package com.spirit.mypopup.menu;

import android.os.Parcel;

/**
 * author : fang.zhang
 * e-mail : initzf@126.com
 * date   : 2020/5/16
 * desc   :
 */
public class LikeBean implements OptionObject {
    private String like;
    private int id;

    public LikeBean(String like, int id) {
        this.like = like;
        this.id = id;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.like);
        dest.writeInt(this.id);
    }

    protected LikeBean(Parcel in) {
        this.like = in.readString();
        this.id = in.readInt();
    }

    public static final Creator<LikeBean> CREATOR = new Creator<LikeBean>() {
        @Override
        public LikeBean createFromParcel(Parcel source) {
            return new LikeBean(source);
        }

        @Override
        public LikeBean[] newArray(int size) {
            return new LikeBean[size];
        }
    };

    @Override
    public String getTitle() {
        return like;
    }

    @Override
    public String getId() {
        return "" + id;
    }
}
